//
//  InToChancelCollectionViewCell.m
//  Inner  Voice
//
//  Created by brother on 16/3/9.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "InToChancelCollectionViewCell.h"

@implementation InToChancelCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)loadImageWithStr:(NSString*)str{
    NSURL *url = [NSURL URLWithString:str];
    //    给imaageView加载网络图片，之前先用1.jpg
    [self.iconImageView sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    
    //    圆角
    self.iconImageView.layer.cornerRadius = 8;
    self.iconImageView.layer.masksToBounds = YES;
    [self.iconImageView.layer setBorderWidth:2];
    [self.iconImageView.layer setBorderColor:(__bridge CGColorRef _Nullable)([UIColor blueColor])];
    self.iconImageView.contentMode = UIViewContentModeScaleAspectFill;
    
}

@end
